package com.unittec.drainage.provider.manage.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.unittec.drainage.provider.root.EntityRoot;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author Jason
 * @date 2021/8/11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "waterhead_user")
public class WaterheadUser extends EntityRoot implements Serializable {

    private static final long serialVersionUID = 1938626110382317218L;

    /**
     * 水源类型(1=自备水源，2=建筑水源)
     */
    @TableField(value = "waterhead_type")
    private String waterheadType;

    /**
     * 用户代码
     */
    @TableField(value = "user_code")
    private String userCode;

    /**
     * 用户名称
     */
    @TableField(value = "user_name")
    private String userName;

    /**
     * 用户地址
     */
    @TableField(value = "user_address")
    private String userAddress;

    /**
     * 用户电话
     */
    @TableField(value = "user_phone")
    private String userPhone;

    /**
     * 取水设施能力
     */
    @TableField(value = "water_intake_facility")
    private String waterIntakeFacility;

    /**
     * 征收方式
     */
    @TableField(value = "levy_mode")
    private String levyMode;

    /**
     * 征收标准
     */
    @TableField(value = "levy_standard")
    private String levyStandard;

    /**
     * 用水量
     */
    @TableField(value = "water_consumption")
    private BigDecimal waterConsumption;

    /**
     * 排水量
     */
    @TableField(value = "water_discharge")
    private BigDecimal waterDischarge;

    /**
     * 污水价类别
     */
    @TableField(value = "price_category")
    private String priceCategory;

    /**
     * 用水性质
     */
    @TableField(value = "water_nature")
    private String waterNature;

    /**
     * 水系id
     */
    @TableField(value = "river_system_id")
    private String riverSystemId;

    /**
     * 区域id
     */
    @TableField(value = "region_id")
    private String regionId;

    /**
     * 街道id
     */
    @TableField(value = "road_id")
    private String roadId;

    /**
     * 社区id
     */
    @TableField(value = "community_id")
    private String communityId;

    /**
     * 状态（0=正常，1=销户）
     */
    @TableField(value = "state")
    private String state;

    /**
     * 立户人id
     */
    @TableField(value = "opne_by")
    private String opneBy;

    /**
     * 立户人名称
     */
    @TableField(value = "opne_name")
    private String opneName;

    /**
     * 立户时间
     */
    @TableField(value = "opne_time")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date opneTime;

    /**
     * 销户人id
     */
    @TableField(value = "close_by")
    private String closeBy;

    /**
     * 销户人名称
     */
    @TableField(value = "close_name")
    private String closeName;

    /**
     * 销户时间
     */
    @TableField(value = "close_time")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date closeTime;

    /**
     * 状态（0=正常，1=已删除）
     */
    @TableField(value = "deleted")
    @TableLogic
    private Integer deleted;

    /**
     * 备注
     */
    @TableField(value = "remarks")
    private String remarks;
}